<template>
  <div>
    <div class="desc">
      <label>处置时间：</label>
      <span>
        {{ detail.solve_date }}
      </span>
    </div>
    <div class="desc">
      <label>处置单位：</label>
      <span>
        {{ detail.solve_dept_name }}
      </span>
    </div>
    <div class="desc">
      <label>承办人：</label>
      <span>
        {{ detail.undertake__user_name }}
      </span>
    </div>
    <div class="desc">
      <label>是否属实：</label>
      <span>
        {{ detail.true_type }}
      </span>
    </div>
    <div class="desc">
      <label>是否转问题线索：</label>
      <span>
        {{ detail.problem_clues == 0 ? "否" : "是" }}
      </span>
    </div>
    <div class="desc">
      <label>处置结果：</label>
      <span>
        {{ detail.solve_result }}
      </span>
    </div>
    <div class="desc">
      <label>处置结果附件：</label>
      <CommonUpload
        tableName="red-alert-punish"
        :useType="'czjg'"
        :pid="detail.assign_id"
        :showUploadBtn="false"
        :disabled="true"
      ></CommonUpload>
    </div>
    <div class="desc">
      <label>四种形态处理结果：</label>
      <el-table :data="detail.fourFormsList" border stripe>
        <el-table-column
          label="姓名"
          prop="user_name"
          width="100"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="工作单位"
          prop="dept_name"
          min-width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="职务"
          prop="duty_level"
          min-width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="岗位"
          prop="post"
          min-width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="组织措施"
          prop="solve_mode"
          min-width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="党纪处分"
          prop="party_punish"
          min-width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="政务处分"
          prop="gov_punish"
          min-width="150"
          align="center"
        >
        </el-table-column>
      </el-table>
    </div>
    <div class="desc">
      <label>建章立制：</label>
      <span>
        {{ detail.create_system }}
      </span>
    </div>
    <div class="desc">
      <label>建章立制附件：</label>
      <CommonUpload
        tableName="red-alert-punish"
        :useType="'jzlz'"
        :pid="detail.assign_id"
        :showUploadBtn="false"
        :disabled="true"
      ></CommonUpload>
    </div>

    <div class="desc" style="margin-top: 20px; line-height: 36px">
      <label>后续处置：</label>
      <div v-if="detail">
        <el-button
          v-if="detail.problem_clues == 1"
          type="primary"
          @click="$emit('transfer')"
          >问题移送</el-button
        >
        <!-- <el-button type="warning" @click="$emit('rectification')"
          >整改</el-button
        > -->
        <el-button type="danger" @click="$emit('oneCaseThreeCheck')"
          >一案三查</el-button
        >
      </div>
    </div>
  </div>
</template>

<script>
import CommonUpload from "@/components/Common/CommonUpload.vue";
export default {
  components: { CommonUpload },
  props: {
    detail: {
      type: Object,
      default: null,
    },
  },
};
</script>

<style lang="scss" scoped>
</style>